// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

Vue.config.productionTip = false

const cpp = {
  template: `
  <div>
  <h1>{{message}}</h1>
</div>
  `,
  data() {
    return {
      message: '我爱你！'
    }
  }
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: function (h) {
    //1、传递一个原生代码：CreateElement('标签名',{标签属性},['标签当中的内容'])
    return h('h1', {class: 'box'}, ['HelloWorld!',h('button',['按钮'])])
    //2、传递一个组件
    // return h(cpp);
  }
})
